package com.reran.spring.study.homework.h02.config;

import com.reran.spring.study.homework.h02.model.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: WangSiTeng
 * @date: 2021/12/6
 */
@Component
public class BeanConfig {

    @Bean(name = "Bean01")
    private static Student GetBean01(){
        Student studentBean = new Student("Bean01", 10);
        return studentBean;
    }


}
